import request from '../network/request'

const Api = {
    twProductCategoryPage: 'api/biz/twProductCategory/page',
    twProductCategoryCateInfo: 'api/biz/twProductCategory/catInfo',
    twProductCategoryTwoCatList: 'api/biz/twProductCategory/twoCatList',
 }

export const twProductCategoryPage=(data) =>{
    return request({
        url: Api.twProductCategoryPage,
        method: 'get',
        data: data,
        headers: {contentType: 'application/x-www-form-urlencoded',loading:false}
    })
}



export const twProductCategoryTwoCatList=(firstId) =>{
    return request({
        url: Api.twProductCategoryTwoCatList,
        method: 'get',
        data: {firstId:firstId},
        headers: {contentType: 'application/x-www-form-urlencoded',loading:true}
    })
}




export const twProductCategoryCateInfo=() =>{
    return request({
        url: Api.twProductCategoryCateInfo,
        method: 'get',
        headers: {contentType: 'application/x-www-form-urlencoded',loading:false}
    })
}



